home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / e / kyz_obj.lha / doc / datestring.doc < prev    next >
Text File  |  1998-10-18  |  1KB  |  42 lines

  1. TABLE OF CONTENTS
  2.  
  3. datestring.m/--overview--
  4. datestring.m/new
  5. datestring.m/--overview--                           datestring.m/--overview--
  6.  
  7.    PURPOSE
  8.     To represent a textual form of the current date and time.
  9.  
  10.    OVERVIEW
  11.     A  very  simple  object  that  datestamps  itself on creation, and
  12.     transforms  that  datestamp into a set of three strings, which are
  13.     accessable as the object attributes 'day', 'date' and 'time'.
  14.  
  15. datestring.m/new                                             datestring.m/new
  16.  
  17.    NAME
  18.     datefield.new() -- Constructor.
  19.  
  20.    SYNOPSIS
  21.     new()
  22.        new(format)
  23.  
  24.    FUNCTION
  25.     Initialises an instance of the datestring class.
  26.  
  27.    INPUTS
  28.     format - the format the 'date' attribute will take:
  29.              format = 0, dd-mmm-yy (12-Feb-92)
  30.              format = 1, yy-mm-dd  (92-02-12)
  31.              format = 2, mm-dd-yy  (02-12-92)
  32.              format = 3, dd-mm-yy  (12-02-92)
  33.  
  34.              The default format is 0.
  35.  
  36.    RESULT
  37.     The initialised instance now contains three readable attributes:
  38.         day  - string representing the name of the day, eg 'Monday'
  39.         date - string representing the current date, eg '27-Feb-94'
  40.         time - string representing the current time, eg '12:34:56'
  41.  
  42.